
import React from 'react';
import PropTypes from 'prop-types';
import { Input, Button } from 'antd';
import styles from './Action.less';

class Action extends React.Component {
  static propTypes = {
    onCreateClick: PropTypes.func,
  }

  render () {
    return (
      <div className={styles.action}>
        <Button type="dashed" icon="plus" onClick={() => { this.props.onCreateClick(); }} >添加</Button>
      </div>
    );
  }
}

export default Action;
